from django.db import models

# Create your models here.
class Article(models.Model):
    title = models.CharField(max_length=30)
    content = models.TextField()
    pub_time = models.DateTimeField(null=True)

    class Meta:
        verbose_name_plural='博客'
        db_table = 'myarticle'

    def __str__(self):
        return  self.title
